package com.sanda.bailin.service;

import com.sanda.bailin.mapper.HelloMapper;
import com.sanda.bailin.pojo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HelloService {

    @Autowired
    HelloMapper helloMapper;

   // public String hello(){
     //   UserInfo userInfo =  helloMapper.getName().get(0);
       // return userInfo.getHobby();
    //}
    //public List<UserInfo> hello_all(){
      //  return helloMapper.getName();
    //}


    public List<UserInfo> getUserInfo(Integer limit,Integer offset) {
        return helloMapper.getName(limit,offset);
    }

    public Integer getCount(){
        return helloMapper.getCount();
    }
}
